package com.harmonypilot.modelconfig.web;

import com.harmonypilot.modelconfig.config.DynamicConfig;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/api/meta")
public class MetaController {
    private final DynamicConfig cfg;
    public MetaController(DynamicConfig cfg){ this.cfg = cfg; }

    @GetMapping("/banner")
    public Map<String, String> banner(){
        return Map.of("banner", cfg.getSiteBanner());
    }
}


